/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#ifndef __RIGIDBODY_TERRAIN__
#define __RIGIDBODY_TERRAIN__

#include "EnginePrerequisites.h"

#include "BulletDynamics/Dynamics/btRigidBody.h"
#include "BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h"

#include "TerrainObject.h"


namespace PQEngine
{
	//as RigidGameObject, this class manage terrain(chunk) physics
	class RigidTerrain
	{
	private:
		btHeightfieldTerrainShape* _shape;
		btRigidBody* _rigidBody;
		
	public:
		RigidTerrain(TerrainObject* object);

		inline btRigidBody* getRigidBody()
		{
			return _rigidBody;
		}
	};
}
#endif
